#app {
  .main-container {
    transition: margin-left #{$sideBarDuration};
    min-height: 100%;
    position: relative;
  }
  .sidebar-container {
    transition: width #{$sideBarDuration};
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    background: $menuBg;
  }
  // 统一控制: 由 openSidebar 和 hideSidebar 控制
  .openSidebar {
    .sidebar-container {
      width: $sideBarWidth;
    }
    .main-container {
      margin-left: $sideBarWidth;
    }
  }
  .hideSidebar {
    .sidebar-container {
      width: 80px;
    }

    .main-container {
      margin-left: 80px;
    }
  }
  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

